package com.zhao.dota.struct;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.util.List;

@Data
public abstract class Tree {

    @TableField(exist = false)
    protected List<? extends Tree> children;
    @TableField(exist = false)
    protected boolean selected;

    public abstract Integer getId();

    public abstract Integer getParentId();

}
